<%inherit file="/layouts/base.html"/>
<%def name="title()">Edit TestCase</%def>
<%def name="head()">
</%def>


% if c.key:
    ${h.secure_form(url('save_testcase', key=c.key))}
% else:
    ${h.secure_form(url('create_testcase'))}
% endif
    ${h.hidden(name="key", value=c.key)}
    <fieldset>    
    <label>Summary:</label>${h.text(name="summary", value=c.summary)}
    </fieldset>
    <fieldset>    
    <label>Instruction:</label>${h.textarea(name="instruction", rows=7, cols=40, content=c.instruction)}
    </fieldset>
    <fieldset>    
    <label>Expected Result:</label>${h.textarea(name="expected_result", rows=7, cols=40, content=c.expected_result)}
    </fieldset>
    <fieldset>
    <label>TestSuite:</label>
    ${h.select(name="testsuite", selected_values=c.testsuite, options=c.all_testsuites)} 
    </fieldset>
${h.submit(value="Save", name="commit")}
${h.end_form()}

